<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" rel="stylesheet" href="../Public/css/basic.css" />
<link type="text/css" rel="stylesheet" href="../Public/css/manage.css" />
<script type="text/javascript" src="__ROOT__/Public/Jquery/jquery.js"></script>
<script type="text/javascript" src="../Public/js/level.js"></script>
<title></title>
</head>
<body id="main">
    <h2>信息属性设置 -- 属性列表<a href="__URL__/add"><span class="add">+</span>添加属性</a></h2>
    <div id="search"><?php echo ($searchform); ?></div>
    <form method="post" action="__URL__/mulDelete">
        <table>
            <tr><th>选择</th><th>属性名称</th><th>属性别名</th><th>属性类型</th><th>操作</th></tr>
            <?php if(is_array($allattr)): $i = 0; $__LIST__ = $allattr;if( count($__LIST__)==0 ) : echo "$empty" ;else: foreach($__LIST__ as $key=>$value): $mod = ($i % 2 );++$i;?><tr><td><input type="checkbox" name="select[]" value="<?php echo ($value["id"]); ?>"/></td><td><?php echo ($value["name"]); ?></td><td><?php echo ($value["nickname"]); ?></td>
                <?php if($value['type'] == 1): ?><td>下拉框类型</td>
                <?php elseif($value['type'] == 2): ?>
                    <td>复选框类型</td>
                <?php elseif($value['type'] == 3): ?>
                    <td>单选框类型</td>
                <?php else: ?>
                    <td>文本框类型</td><?php endif; ?>
                <td><a href="__URL__/update/id/<?php echo ($value["id"]); ?>"><img src="../Public/images/edit2.gif" title="修改"/></a>　<a href="__URL__/delete/id/<?php echo ($value["id"]); ?>"><img src="../Public/images/drop.gif" title="删除" onclick="javascript:return confirm('确认删除?') ? true : false;"/></a></td></tr><?php endforeach; endif; else: echo "$empty" ;endif; ?>
            <tr><td colspan="6" style="padding-right:900px;" ><input type="button" value="全选" id="all"/><input type="button" value="反选" id="cancel"/>　<input type="submit" value="批量删除" onclick="javascript:return confirm('确认删除?') ? true : false;"/></td></tr>
        </table>
    </form>
    <div id="page">
        <?php echo ($page); ?>
    </div>
</body>
</html>